package tech.aistar.day03;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * 本类功能:
 *
 * @author cxylk
 * @date 2020/9/18 15:38
 */
@WebServlet(urlPatterns = "/day02/*")
public class MohuAction extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        PrintWriter out=resp.getWriter();

        //如果获取模糊的路径
        String pathInfo=req.getPathInfo();

        out.println(pathInfo);

        out.println("mohu");
    }
}
